package com.test.javafaq_faq.vo;


import lombok.Data;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;


@Data
public class QuestionVo implements Serializable {

    @NotBlank(message = "标题不能为空")
    @Pattern(regexp = "^.{3,50}$" ,message = "标题格式不正确，3~50字符")
    private String title;

    private String[] tagNames = {};

    private String[] teacherNicknames = {};

    @NotBlank(message = "问题内容不能为空")
    private String content;
}
